package com.copa.module.user.domain.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.copa.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;
/**
 * @author copa
 * @createDate 2021-01-13
 * @function   t_user表实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_user")
@ApiModel(value="User对象", description="")
public class UserEntity extends BaseEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "登录帐号（微信名为nickName）")
    @TableField("username")
    private String username;

    @ApiModelProperty(value = "登录密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "真实姓名")
    @TableField("actual_name")
    private String actualName;

    @ApiModelProperty(value = "微信账号唯一值")
    @TableField("open_id")
    private String openId;

    @ApiModelProperty(value = "微信头像")
    @TableField("avatar_url")
    private String avatarUrl;

    @ApiModelProperty(value = "性别 0：未知、1：男、2：女")
    @TableField("gender")
    private Integer gender;

    @ApiModelProperty(value = "手机号码")
    @TableField("phone")
    private String phone;

    @ApiModelProperty(value = "身份证")
    @TableField("id_card")
    private String idCard;

    @ApiModelProperty(value = "出生日期")
    @TableField("birthday")
    private LocalDateTime birthday;

    @ApiModelProperty(value = "邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty(value = "是否启用 0否1是")
    @TableField("is_enabled")
    private Integer isEnabled;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "是否删除 0否 1是")
    @TableField("is_delete")
    private Integer isDelete;


    public static final String USERNAME = "username";

    public static final String PASSWORD = "password";

    public static final String ACTUAL_NAME = "actual_name";

    public static final String OPEN_ID = "open_id";

    public static final String AVATAR_URL = "avatar_url";

    public static final String GENDER = "gender";

    public static final String PHONE = "phone";

    public static final String ID_CARD = "id_card";

    public static final String BIRTHDAY = "birthday";

    public static final String EMAIL = "email";

    public static final String IS_ENABLED = "is_enabled";

    public static final String REMARK = "remark";

    public static final String IS_DELETE = "is_delete";


}
